﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="main_menu.aspx.cs" Inherits="PlugNT.Cms.Web.Admin.js.main_menu" %>
/* 当前所在选项卡 */
var currTab = 'dashboard';
/* 菜单列表 */
var menu = {
    "dashboard": {
        "text": "控制台",
        "subtext": "常用操作",
        "default": "admin_welcome",
        "children": {
            "admin_welcome": { "text": "系统信息", "url": "./Info.aspx" },
            <%if(PlugNT.Custom.WebConfig.IsAccess){ %>
            "data_entry": { "parent": "model", "text": "添加内容", "url": "./Article/Add.aspx" },
            <%}else{ %>
            "data_entry": { "parent": "core", "text": "快捷导航", "url": "./Tables/DataControl.aspx" },
            <%} %>
            "site_setting": { "parent": "setting", "text": "网站配置", "url": "./Global/Config.aspx" },
            "article_list": { "parent": "model", "text": "内容管理", "url": "./Article/Admin.aspx" },
            "create_files": { "parent": "core", "text": "生成静态", "url": "./Create/CreateHtml.aspx" }
        }
    },
    "core": {
        "text": "核心",
        "default": "create_files",
        "children": {
            <%if(!PlugNT.Custom.WebConfig.IsAccess){ %>
            "data_entry": { "text": "快捷导航", "url": "./Tables/DataControl.aspx" },
            <%} %>
            "channel_list": { "text": "网站栏目", "url": "./Channel/Admin.aspx" },
            "templet_bind": { "text": "绑定文件", "url": "./Create/BindTemplet.aspx" },
            <%if(!PlugNT.Custom.WebConfig.IsAccess){ %>
            "category_list": { "text": "网站类别", "url": "./Category/Admin.aspx" },
            //"spliter1": { "text": "----------", "url": "#" },
            <%} %>
            "create_files": { "text": "生成静态", "url": "./Create/CreateHtml.aspx" },
            <%if(!PlugNT.Custom.WebConfig.IsAccess){ %>
            "tables_list": { "text": "扩展表管理", "url": "./Tables/Admin.aspx" },
            "field_list": { "text": "扩展字段管理", "url": "./Field/Admin.aspx" },
            <%} %>
            "sql_list": { "text": "SQL语句列表", "url": "./Systems/SqlList.aspx" }
        }
    },
    "model": {
        "text": "模块",
        "default": "article_list",
        "children": {
            <%if(PlugNT.Custom.WebConfig.IsAccess){ %>
            "data_entry": { "text": "添加内容", "url": "./Article/Add.aspx" },
            <%} %>
            "article_list": { "text": "内容管理 ", "url": "./Article/Admin.aspx" },
            "user_list": { "text": "用户列表", "url": "./User/Admin.aspx" },
            "comment_list": { "text": "评论列表", "url": "./Comment/Admin.aspx" },
            "admin_list": { "text": "管理员管理", "url": "./Adminer/Admin.aspx" },
            "groupadmin": { "text": "权限组列表", "url": "./GroupAdmin/Admin.aspx" },
            "grouppages": { "text": "页面授权列表", "url": "./GroupPages/Admin.aspx" },
            "friendlink_list": { "text": "友情链接位置", "url": "./FriendLink/LinkCategory.aspx" },
            "friendlink_admin": { "text": "友情链接列表", "url": "./FriendLink/Admin.aspx" },
            "advertise_admin": { "text": "广告管理", "url": "./Advertise/Admin.aspx" }
        }
    },
    "setting": {
        "text": "全局",
        "default": "site_setting",
        "children": {
            "site_setting": { "text": "网站配置", "url": "./Global/Config.aspx" },
            "file_list": { "text": "文件管理", "url": "./FileManager/Default.aspx" },
            "clear_admin": { "text": "系统管理", "url": "./Systems/Manager.aspx" },
            "pass_setting": { "text": "密码修改", "url": "./ModifyPass.aspx" },
            "fkc_templet_setting": { "text": "FCK模板", "url": "./FileManager/FckTemplets.aspx" },
            "collect": { "text": "采集内容", "url": "./Help/collect.html" },
            "services": { "text": "升级服务", "url": "http://www.fjaspx.com/default.aspx" }
        }
    },
    "product": {
        "text": "产品",
        "default": "trade_admin",
        "children": {
            "trade_admin": { "text": "行业类别", "url": "./Trade/Admin.aspx" },
            "enterprise_admin": { "text": "企业管理", "url": "./Enterprise/Admin.aspx" },
            "product_class_admin": { "text": "产品类别", "url": "./ProductCategory/Admin.aspx" }, 
            "product_admin": { "text": "产品管理", "url": "./Product/Admin.aspx" }
        }
    }
};